#ifndef LOGGER_H_
#define LOGGER_H_

#include <ctime>
#include <string>
#include <fstream>
#include <iostream>
#include "fila.hpp"

class logger
{
	
public:
	
	static logger&
	getInstance()
	{
		static logger log;
		return log;
	}
	
	void
	newEntry( const std::string );
	
	void
	saveTo( const char* );
	
protected:
	
	logger();
	
	virtual
	~logger();
	
private:
	
	logger( logger const& );
	
	logger&
	operator=( logger const& );
	
	std::string
	getLocalTime();
	
	time_t
	rawtime;
	
	std::string
	localTime;
	
	static fila<std::string>
	allEntries;
	
};

#endif /*LOGGER_H_*/
